package com.example.hello.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * Created by xux on 2016/10/12.
 */
@FeignClient("say-hello")
public interface SayService {

    @RequestMapping(name="/say/{text}",method = RequestMethod.GET)
    Map say(@PathVariable("text") String text);

}
